import request from '@/utils/request'

// 查询实名认证列表
export function getAllIdentity(query) {
  return request({
    url: '/merchant/identity/getAll',
    method: 'get',
    params: query
  })
}
// 查询实名认证列表
export function listIdentity(query) {
  return request({
    url: '/user/identity/list',
    method: 'get',
    params: query
  })
}
// 查询实名认证详细
export function getIdentity(id) {
  return request({
    url: '/user/identity/' + id,
    method: 'get'
  })
}

// 新增实名认证
export function addIdentity(data) {
  return request({
    url: '/user/identity',
    method: 'post',
    data: data
  })
}

// 修改实名认证
export function updateIdentity(data) {
  return request({
    url: '/user/identity',
    method: 'put',
    data: data
  })
}

// 删除实名认证
export function delIdentity(id) {
  return request({
    url: '/user/identity/' + id,
    method: 'delete'
  })
}
